# -*- coding: utf-8 -*-
import os,logging
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext.db import Model as DBModel
from google.appengine.api import memcache
from google.appengine.api import mail
from google.appengine.api import urlfetch
from google.appengine.api import datastore
from datetime import datetime

#from base import *
logging.info('module base reloaded')

rootpath=os.path.dirname(__file__)

class Category(db.Model):
	cnname=db.StringProperty(required=True)
	enname=db.StringProperty(required=True)
class Story(db.Model):
	name = db.StringProperty(required=True)
	author = db.StringProperty(required=True)
	createdate = db.StringProperty(required=True)
	is_over = db.BooleanProperty(default=False)
	description = db.TextProperty()
	storylength= db.IntegerProperty(default=0)
	storyhref = db.StringProperty(required=True)
	clickcount = db.IntegerProperty(default=0)
	updatedate = db.DateTimeProperty(auto_now_add=True)

